<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>手机套餐花费</title>
    <script>
      function getPhoneChoice(min) {
        let costA = 0.5 * min
        let costB = 0.2 * min + 16
        let type = 0
        if (costA < costB) {
          type = 1
        } else if (costA > costB) {
          type = 2
        }
        return type
      }
    </script>
  </head>
  <body></body>
</html>
